<html>
<head>
    <title>DotNetNuke</title>
    <link rel="stylesheet" type="text/css" href="Documentation.css">
</head>
<body bottommargin="5" leftmargin="5" topmargin="5" rightmargin="5" marginwidth="0"
    marginheight="0">
    <img src="logo.gif" border="0">
    <h1>
        DotNetNuke ZParentProjectNameZ Module 
        - Unit Test Project</h1>
    <h2>
        Introduction</h2>
    <p>
        To develop DotNetNuke modules using Test Driven Development methodologies the module
        solution will contain two projects, one for the module and one for the Unit Tests.
        This project contains the Unit Tests and you will now need to add the Module project
        to complete the solution.</p>
    <p>
        The Module project also uses MSBuild tasks to make development easier. There is
        no need to locate the module you are developing under DesktopModules anymore. Locate
        your source files where ever you like and then modify the vbproj file and set the
        DNNDirectory to the root of the site you will be using as your development site.
        The MSBuild tasks then copy the required files to that web site where you can debug
        by attaching to the w3p.exe process.</p>
    <h2>
        * Important *</h2>
    <ul>
        <li>This test project uses Transaction Scope so you will need to start the DTC Service.</li>
        <li>Make sure you use an object qualifier as in the development.config, the SqlDataProvider
            tests rely on it.</li>
    </ul>
    <h3>
        Follow these steps .</h3>
    <ul>
        <li>Rename this test project to ZParentProjectNameZ.Tests</li>
        <li>Select Add New Reference and find the DotNetNuke.dll assembly in the File Dialog.</li>
        <li>This test project also needs to access the database so you will need to set up the
            connection string in the SqlDataProviderFixture.cs file.</li>
        <li>Add a New project and select the ZParentProjectNameZ template and name the project
            ZParentProjectNameZ and put it in a different folder.  It is normal to put tests in a subfolder called Tests.</li>
        <li>Edit the Project properties by double-cliking on the My Project folder in Solution
            Explorer.</li>
        <li>Make sure that the Application Tab is selected</li>
        <li>Make sure the Root Namespace text-box is empty, and save the Project.</li>
        <li>Select Add New Reference and find the DotNetNuke.dll and Microsoft.ApplicationBlocks.Data
            assemblies in the File Dialog.</li>
        <li>Build the Module project and then add a project reference to the Module from the
            tests project.</li>
    </ul>
    <hr />
    <h3>
        Installing your module</h3>
    To install your module, browse to your development DotNetNuke website and log in
    as a Host (SuperUser) user.
    <ul>
        <li>Browse to the Host/Module Definitions page and select Add Module. In the drop-down
            combo at the top of the page select the Manifest file for your new module and click
            Install. </li>
        <li>Next browse to the Host/SQL page. Copy the text from the 01.00.00.SqlDataProvider
            file, and paste in the text box. Make sure the "Run as script" checkbox is checked
            and click Execute. </li>
    </ul>
    Your module should now be installed, and you can add it to a page in the usuall
    manner.
    <h3>
        Further Resources</h3>
    <p>
        The information in this page is only an overview. For more information, visit <a
            href="http://www.dotnetnuke.com">www.dotnetnuke.com</a>.
    </p>
</body>
</html>
